package Lian02;

import java.util.Arrays;

/**
 * 二维数组
 */
public class DuoWeiShuZu {
    public static void main(String[] args) {
        int[][] arrInt = new int[3][4];

        arrInt[0][0] =1;
        arrInt[0][1] =2;
        arrInt[0][2] =3;
        arrInt[0][3] = 4;

        arrInt[1][0] =1;
        arrInt[1][1] =2;
        arrInt[1][2] = 3;
        arrInt[1][3] = 4;

        arrInt[2][0] =1;
        arrInt[2][1] =2;
        arrInt[2][2] = 3;
        arrInt[2][3] = 4;

        for (int i = 0; i < arrInt.length; i++) {
            for (int j = 0; j < arrInt[i].length; j++) {
                System.out.print(" "+arrInt[i][j]);
            }
            System.out.println("");
        }
    }
}
